<jdoc:include type="modules" name="debug" />

<?php if ($this->getParam ('infomode',1) == 1 && JRequest::getCmd ('t3info')) : ?>
	<script type="text/javascript">
	var jalayout=<?php echo json_encode($this->getLayoutXML()) ?>;
	var t3info='<?php echo JRequest::getCmd('t3info') ?>';
	</script>
	<?php if (is_dir (T3Path::path('layoutinfo', true))) : ?>
		<link type="text/css" rel="stylesheet" href="<?php echo T3Path::url('layoutinfo/style.css', true) ?>" />
		<script type="text/javascript" src="<?php echo T3Path::url('layoutinfo/script.js', true) ?>"></script>
	<?php else :?>
		<?php if (T3Path::getPath ('layoutinfo')) : ?>
		<link type="text/css" rel="stylesheet" href="<?php echo T3Path::getUrl('layoutinfo/style.css') ?>" />
		<script type="text/javascript" src="<?php echo T3Path::getUrl('layoutinfo/script.js') ?>"></script>
		<?php endif; ?>
	<?php endif; ?>
<?php endif; ?>